import request from '@/utils/request'
import { DeepRequired } from '../../interface'

/**
 * 文件下载
 * /file/download/file/{name}
 */
export function getFileDownloadFileByName(
  params: GetFileDownloadFileByNameParams,
) {
  return request.get<DeepRequired<string>>(`/file/download/file/${params.name}`)
}

interface GetFileDownloadFileByNameParams {
  name: string
}
